﻿using GpgCore.GameWorld;
using GpgCore.Maps;

namespace GpgCore.MapItems
{
    public abstract class MapItem
    {
        public PlanetMapCell MapCell;
        public MapItemType ItemType;
        public City BelongsToCity
        {
            get { return MapCell.BelongsToCity; }
        }

        protected MapItem(PlanetMapCell mapCell)
        {
            MapCell = mapCell;
            MapCell.MapItem = this;
        }

        public virtual void StartNextTurn()
        {
        }

        public virtual void EndNextTurn()
        {
        }
    }

    public enum MapItemType
    {
        City,
        Factory,
        Mine,
        Farm
    }
}
